﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace GroceryPriceBook.Core.ViewModel
{
	/// <summary>
	/// View Model object for presentation which inherits the AutoMapper Profile class
	/// </summary>
	public class Store
	{
		public Store()
		{
			PurchaseLogs = new List<PurchaseLog>();
		}

		public System.Guid Id { get; set; }

		[DisplayName("Active?")]
		public bool IsActive { get; set; }

		[Required(ErrorMessage = "Required")]
		[StringLength(50)]
		public string Name { get; set; }

		[StringLength(200)]
		public string Address { get; set; }

		public List<PurchaseLog> PurchaseLogs { get; set; }
	}
}
